//
//  YLMonthlyBillCalendarModel.m
//  YLFinanceService
//
//  Created by she1323 on 2017/10/30.
//  Copyright © 2017年 she1323. All rights reserved.
//

#import "YLMonthlyBillCalendarModel.h"

@implementation YLMonthlyBillCalendarModel

- (void)setDay:(NSString *)day
{
    _day = day;
   
    
    if (day.length > 18) {
        
        NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
        [dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
        
        day = [[day stringByReplacingOccurrencesOfString:@"T" withString:@" "] substringToIndex:18];
         _date = [dateFormatter dateFromString:day];
    }
    
    
}

@end

@implementation YLMonthlyBillCalendarItem

+ (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass
{
    return @{@"item" : [YLMonthlyBillCalendarModel class]};
}

@end
